package com.deepocean.dao;

import com.deepocean.entity.*;
import com.deepocean.entity.process.HierarchicalCycloneProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HierarchicalCycloneDao {
    /**
     * 添加分级旋流器输入输出数据
     * @param hierarchicalCycloneEntity
     * @return
     */
    boolean add(HierarchicalCycloneEntity hierarchicalCycloneEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    HierarchicalCycloneInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param hierarchicalCycloneCondition
     * @return
     */
    List<HierarchicalCycloneEntity> getHierarchicalCycloneByCondition(HierarchicalCycloneCondition hierarchicalCycloneCondition);

    boolean addProcess(HierarchicalCycloneProcessEntity hierarchicalCycloneProcessEntity);
}
